<?php
/**
 * Created by JiangJiaCai.
 * User: Administrator
 * Date: 2017/9/26 0026
 * Time: 11:53
 */

namespace App\Http\Controllers\home;


use App\Http\Controllers\BaseController;
use com_jjcbs\lib\ServiceFactory;
use ext\service\ArticleServiceImpl;

/**
 * 流程控制器
 * Class ProcedureController
 * @package App\Http\Controllers\home
 */
class ProcedureController extends BaseController
{
    private $articleServiceImpl = null;

    public function __construct()
    {
        parent::__construct();
        $this->articleServiceImpl = ServiceFactory::getInstance(ArticleServiceImpl::class);
    }

    public function index(){
        $this->model['data'] = $this->articleServiceImpl->articleDao->getOneProcess();
        $this->model['pos'] = $this->articleServiceImpl->getPos($this->model['data']);
        return view('procedure' , $this->model);
    }
}